import React from 'react';
import Child from './子组件'

export default class 父组件 extends React.Component {

    state = {

    };
    fnn(a){
        console.log(a);
    }
    render() {
        return (
            <div>
                <Child
                fn={this.fnn}
                 msg={123}
                 prefix={<span>前缀</span>}
                 >
                    <div>插槽</div>
                 </Child>
            </div>
        );
    }

}
